 <link rel="stylesheet" href="<?php echo base_url()?>template/css/selectbox.css" type="text/css">

 <script src="<?php echo base_url()?>template/js/jquery.selectbox-0.5.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    //xu ly click lay du lieu//
  jQuery("#each div").click(function(){
      jQuery(this).toggleClass('uncheck');
       //if($('#+echoa').val()==1){$('#echoa').val('2')}else $('#echoa').val('1');
       var id = $(this).attr("id");
       var value = $(this).attr("class");  
       if($('#t'+id).val()==0){$('#t'+id).val(1);}else $('#t'+id).val(0); 
  }); 
//select box new
$('.Items').selectbox();
//endselect box new  
     $('#sec_chuyenkhoa_container ul li').click(function() {
     var data= $("#sec_chuyenkhoa").val(); 
     $.ajax({
              type: "POST",
              url: '<?php echo base_url();?>mod_timkiem/ajax/'+data,
              success: function(data) {
                $('.box_benh').html(data);
              }
        });//end ajax
        //alert(data);    
    });
}); //end 
  </script>
  
  <script>
function onBlur(el) {
    if (el.value == '') {
        el.value = el.defaultValue;
    }
}
function onFocus(el) {
    if (el.value == el.defaultValue) {
        el.value = '';
    }
}
</script>

<div id="seach">
    <div id="seach_reft"></div>
    <div id="seach_content">
    <div id="seach_form">
     <form action="<?php echo base_url();?>thong-tin-benh.html" method="POST">   
        <input id="seach_input" type="text" name="seach_tenbenh" value="Nhập tên bệnh cần tìm"  onblur="onBlur(this)" onfocus="onFocus(this)" />
        <div id="seach_select">
        <div class="selectbox_div">
            <select class="select_diadiem Items" tabindex="3" name="iddiadiem" style="display: none;">        
            <?php if(!empty($diadiem)){
                $iddiadiem =  $this->session->userdata('iddiadiem');;
                echo '<option value="0">Địa điểm</option>';
                foreach ($diadiem as $diadiem){                
                    echo '<option';
                    echo $iddiadiem==$diadiem->id?' selected="selected" ':'';
                    echo ' value="'.$diadiem->id.'">'.$diadiem->diadiem.'</option>';
                }                
            }?>
            </select>
        </div>
        <div class="selectbox_div">
            <select id="sec_chuyenkhoa" class="select_chuyenkhoa Items" tabindex="3" name="idchuyenkhoa" style="display: none;">
            <option value="0">Chuyen khoa</option>
            <?php if(!empty($chuyenkhoa)){
                $idchuyenkhoa = $this->session->userdata('idchuyenkhoa');
                foreach ($chuyenkhoa as $chuyenkhoa){                
                    echo '<option';
                    echo $idchuyenkhoa==$chuyenkhoa->id?' selected="selected" ':'';
                    echo ' value="'.$chuyenkhoa->id.'">'.$chuyenkhoa->chuyenkhoa.'</option>';
                }            
            }?>
            </select>
            </div>
            <div class="selectbox_div box_benh">
            <select id="select_benh"  class="select_benh Items" tabindex="3" name="idbenh" style="display: none;" >
            <option value="0">Bệnh</option>
            <?php if(!empty($benh)){
                $idbenh = $this->session->userdata('idbenh');
                foreach ($benh as $benh){                
                    echo '<option';
                    echo $idbenh==$benh->id?' selected="selected" ':'';
                    echo ' value="'.$benh->id.'">'.$benh->tenbenh.'</option>';
                }            
            }?>
            </select>
            </div>
            
        </div><!--end div select-->

            <div style="clear: both;"></div>
              <div id="each">
                   <div id="1" class="check<?php if(!$this->session->userdata('thongtin')){echo ' uncheck';}?>">Thông tin <input type="hidden" value="<?php if($this->session->userdata('thongtin')){echo '1';}else echo 0?>" id="t1" name="thongtin"/></div>
                   <div id="2" class="check<?php if(!$this->session->userdata('thuoc')){echo ' uncheck';}?>">Thuốc <input type="hidden" value="<?php if($this->session->userdata('thuoc')){echo '1';}else echo 0?>" id="t2" name="thuoc"/></div>
                   <div id="3" class="check<?php if(!$this->session->userdata('dinhduong')){echo ' uncheck';}?>">Dinh dưỡng <input type="hidden" value="<?php if($this->session->userdata('dinhduong')){echo '1';}else echo 0?>" id="t3" name="dinhduong"/></div>
                   <div style="clear: both;"></div>
                   <div id="4" class="check<?php if(!$this->session->userdata('phongkham')){echo ' uncheck';}?>">Phòng khám <input type="hidden" value="<?php if($this->session->userdata('phongkham')){echo '1';}else echo 0?>" id="t4" name="phongkham" /></div>
                   <div id="5" class="check<?php if(!$this->session->userdata('benhvien')){echo ' uncheck';}?>">Bệnh viện <input type="hidden" value="<?php if($this->session->userdata('benhvien')){echo '1';}else echo 0?>" id="t5" name="benhvien" /></div>
              </div>  
            <input id="submit" type="submit" name="submit" value="Tìm kiếm" />
           </form>
       </div><!--end div form-->       
       <div id="seach_video" style="z-index: 1;">
        
       <object width="262" height="226">    <param name="wmode" value="transparent" /><param name="movie" value="<?php echo 'http://www.youtube.com/v/UMDfGlff8co'; ?>?version=3&amp;hl=vi_VN"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/UMDfGlff8co?version=3&amp;hl=vi_VN" type="application/x-shockwave-flash" width="262" height="226" allowscriptaccess="always" wmode="transparent" allowfullscreen="true"></embed></object>

       
       </div>
    </div>
    <div id="seach_right"></div>
</div>


       

      